/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package it.baumi.tankwars.entities;

import it.baumi.tankwars.entities.BlockEntity2D;
import org.lwjgl.opengl.GL11;
import static org.lwjgl.opengl.GL11.glVertex2f;

/**
 *
 * @author Michael Baumgartner
 */
public class WallEntity extends BlockEntity2D {

    public WallEntity(double x, double y, double width, double height) {
        super(x, y, width, height);
    }

    @Override
    public void collideWith(BlockEntity2D otherEntity) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setUp() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void draw() {
        GL11.glPushMatrix();
        GL11.glBegin(GL11.GL_QUADS);
        GL11.glColor3f(0.7f, 0.7f, 0.7f);
        GL11.glVertex2d(x - width / 2, y - height / 2);
        GL11.glVertex2d(x - width / 2, y + height / 2);
        GL11.glVertex2d(x + width / 2, y + height / 2);
        GL11.glVertex2d(x + width / 2, y - height / 2);
        GL11.glEnd();
        GL11.glPopMatrix();
    }

    @Override
    public void update() {
        draw();
    }
}
